package com.javaobj.auth.accesstoken;

import java.util.Map;

/**
 * Created by yjwfn on 2020/2/13.
 */
public interface AccessTokenService {

    /**
     * 生成accessToken
     * @param params
     * @return
     */
    String encode(Map<String, Object> params)  ;


    /**
     * 解析AccessToken
     * @param token
     * @return
     */
    Map<String, Object> decode(String token)  ;

}
